<include file="public@header" />
</head>
<style>
    .tab_div{float:left; width:49%;margin-bottom:20px;max-height:500px;min-height: 140px;}
    .tab_div1{float:left; width:49%; margin-left:2%;margin-bottom:20px;max-height:500px;min-height: 140px;}
    .pagination{ margin:0}

</style>
<body>
	<php>$page=''</php>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Remind/index')}">待办提醒</a></li>
		</ul>
        <div>
            <form  class="well form-inline margin-top-20" action="{:url('Remind/index')}" method="post">
                客户名称:
                <input type="text" class="form-control" name="buyer_name" placeholder="请输入姓名" value="{:input('request.buyer_name')}" >

                联系电话:
                <input type="text" class="form-control" name="phone" placeholder="请输入联系电话" value="{:input('request.phone')}" >

                受理时间:
                <input type="text" class="form-control js-date date" autocomplete="off" name="start_time" value="{:input('request.start_time/s','')}" placeholder="请输入开始时间">
                ~
                <input type="text" class="form-control js-date date" autocomplete="off" name="end_time" value="{:input('request.end_time/s','')}" placeholder="请输入结束时间">

                <input type="submit" class="btn btn-primary" data-url="" value="查询" />
            </form>
        </div>
        <form class="form-horizontal js-ajax-form" action="{:url('store/add_post')}" method="post" enctype="multipart/form-data">
        <fieldset>
            <div class="form-group">
                <div class="col-lg-6">
                    <div class="div_title"><span>订单提醒</span>
                        <span style=" color: red;  margin-left: -33px; font-size:16px">（{$order_count}）</span>
                        <a href="{:url('Remind/check')}?type=dd" style="color:#ffffff;"><span style="float:right; margin-right:20px; font-size:12px">查看更多</span></a></div>
                    <div class="control-group1-p div_content" style="overflow:hidden; overflow-x:auto;padding-top:0">
                        <form action="{:url('Orders/index')}" method="post">
                            <table class="table table-hover table-bordered">
                                <thead>
                                <tr>
                                    <th>下单时间</th>
                                    <th>客户名称</th>
                                    <th>联系方式</th>
                                    <th>具体位置</th>
                                    <th>墓位编号</th>
                                    <th>销售价格</th>
                                    <th>导购员</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <foreach name="order_results" item="vo">
                                    <tr>
                                        <td>{:unixtime_to_date($vo.add_time,'Y-m-d H:i')}</td>
                                        <td>{$vo.customer_name}</td>
                                        <td>{$vo.customer_phone}</td>
                                        <td>{$vo.tomb_address}</td>
                                        <td>{$vo.tomb_num}</td>
                                        <td>{$vo.sell_price}</td>
                                        <td>{$vo.user_nickname}</td>
                                        <td >销售</td>
                                    </tr>
                                </foreach>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="div_title"><span>定金提醒</span>
                        <span style=" color: red;  margin-left: -33px; font-size:16px">（{$orders_count}）</span>
                        <a href="{:url('Remind/check')}?type=dj" style="color:#ffffff;">
                        <span style="float:right; margin-right:20px; font-size:12px">查看更多</span></a>
                    </div>
                    <div class="control-group1-p div_content" style="overflow:hidden; overflow-x:auto;padding-top:0">
                        <table class="table table-hover table-bordered" >
                            <thead>
                            <tr>
                                <th>到期时间</th>
                                <th>客户名称</th>
                                <th>联系方式</th>
                                <th>墓位编号</th>
                                <th>销售价格</th>
                                <th>已交定金</th>
                                <td>状态</td>
                            </tr>
                            </thead>
                            <tbody>
                            <foreach name="sub_results" item="vo">
                                <tr>
                                    <td>{:unixtime_to_date($vo.add_time,'Y-m-d H:i')}</td>
                                    <td>{$vo.buyer_name}</td>
                                    <td>{$vo.buyer_phone}</td>
                                    <td>{$vo.mw_num}</td>
                                    <td>{$vo.selling_price}</td>
                                    <td>{$vo.deposit_price}</td>
                                    <td><if condition="$vo.status eq 0">未支付<else/>已支付</if></td>
                                </tr>
                            </foreach>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-lg-6">
                    <div class="div_title"><span>落葬提醒</span>
                        <span style=" color: red;  margin-left: -33px; font-size:16px">（{$buried_count}）</span>
                        <a href="{:url('Remind/check')}?type=lz" style="color:#ffffff;"><span style="float:right; margin-right:20px; font-size:12px">查看更多</span></a>
                    </div>
                    <div class="control-group1-p div_content" style="overflow:hidden; overflow-x:auto;padding-top:0">
                        <table class="table table-hover table-bordered">
                            <thead>
                            <tr>
                                <th>落葬时间</th>
                                <th>客户名称</th>
                                <th>联系方式</th>
                                <th>墓位编号</th>
                                <th>具体位置</th>
                                <th>接待人</th>
                                <th>状态</th>
                            </tr>
                            </thead>
                            <tbody>
                            <foreach name="buried_results" item="vo">
                                <tr>
                                    <td>{:unixtime_to_date($vo.buried_time,'Y-m-d H:i')}</td>
                                    <td>{$vo.dealer_user}</td>
                                    <td>{$vo.dealer_phone}</td>
                                    <td>{$vo.tomb_num}</td>
                                    <td>{$vo.tomb_address}</td>
                                    <td>{$vo.handle_name}</td>
                                    <td><if condition="$vo.service_status eq 1">未确认<elseif condition="$vo.service_status eq 2">已确认<else/>已完成</if></td>
                                </tr>
                            </foreach>
                            </tbody>
                        </table>
                        <div class="pagination">{$page}</div>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="div_title"><span>维保提醒</span>
                        <span style=" color: red;  margin-left: -33px; font-size:16px">（{$weibao_count}）</span>
                        <a href="{:url('Remind/check')}?type=wb" style="color:#ffffff;"><span style="float:right; margin-right:20px; font-size:12px">查看更多</span></a></div>
                    <div class="control-group1-p div_content" style="overflow:hidden; overflow-x:auto;padding-top:0">
                        <form action="{:url('Rock/order')}" method="post">
                            <table class="table table-hover table-bordered">
                                <thead>
                                <tr>
                                    <th>下单时间</th>
                                    <th>交付时间</th>
                                    <th>客户名称</th>
                                    <th>联系方式</th>
                                    <th>墓位编号</th>
                                    <th>类型</th>
                                    <th>状态</th>
                                </tr>
                                </thead>
                                <tbody>
                                <foreach name="weibao_results" item="vo">
                                    <tr>
                                        <td>{$vo.register_time|date='Y-m-d'}</td>
                                        <td>{$vo.deliver_time|date='Y-m-d'}</td>
                                        <td>{$vo.buyer_name}</td>
                                        <td>{$vo.customer_address}</td>
                                        <td>{$vo.tomb_num}</td>
                                        <td>{$vo.business_type}</td>
                                        <td><if condition="$vo.service_status eq 1">未确认<elseif condition="$vo.service_status eq 2">已确认<else/>已完成</if>
                                    </tr>
                                </foreach>
                                </tbody>
                            </table>
                            <div class="pagination">{$page}</div>
                        </form>
                    </div>
                </div>

            </div>
            <div class="form-group">
                <div class="col-lg-6">
                    <div class="div_title"><span>寄存提醒</span>
                        <span style=" color: red;  margin-left: -33px; font-size:16px">（{$jicun_count}）</span>
                        <a href="{:url('Remind/check')}?type=jc" style="color:#ffffff;"><span style="float:right; margin-right:20px; font-size:12px">查看更多</span></a></div>
                    <div class="control-group1-p div_content" style="overflow:hidden; overflow-x:auto;padding-top:0">
                        <table class="table table-hover table-bordered">
                            <thead>
                            <tr>
                                <th>寄存时间</th>
                                <th>客户名称</th>
                                <th>联系方式</th>
                                <th>墓位编号</th>
                                <th>具体位置</th>
                                <th>接待人</th>
                                <th>状态</th>
                            </tr>
                            </thead>
                            <tbody>
                            <foreach name="deposit_results" item="vo">
                                <tr>
                                    <td>{:unixtime_to_date($vo.deposit_time,'Y-m-d H:i')}</td>
                                    <td>{$vo.dealer_user}</td>
                                    <td>{$vo.dealer_phone}</td>
                                    <td>{$vo.tomb_num}</td>
                                    <td>{$vo.tomb_address}</td>
                                    <td>{$vo.handle_name}</td>
                                    <td><if condition="$vo.service_status eq 1">未确认<elseif condition="$vo.service_status eq 2">已确认<else/>已完成</if>
                                </tr>
                            </foreach>
                            </tbody>
                        </table>
                        <div class="pagination">{$page}</div>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="div_title"><span>寄出提醒</span>
                        <span style=" color: red;  margin-left: -33px; font-size:16px">（{$deposit_out_count}）</span>
                        <a href="{:url('Remind/check')}?type=jc_out" style="color:#ffffff;"><span style="float:right; margin-right:20px; font-size:12px">查看更多</span></a></div>
                    <div class="control-group1-p div_content" style="overflow:hidden; overflow-x:auto;padding-top:0">
                        <table class="table table-hover table-bordered">
                            <thead>
                            <tr>
                                <th>寄出时间</th>
                                <th>客户名称</th>
                                <th>联系方式</th>
                                <th>墓位编号</th>
                                <th>具体位置</th>
                                <th>接待人</th>
                                <th>状态</th>
                            </tr>
                            </thead>
                            <tbody>
                            <foreach name="deposit_results_out" item="vo">
                                <tr>
                                    <td>{:unixtime_to_date($vo.deposit_time,'Y-m-d H:i')}</td>
                                    <td>{$vo.dealer_user}</td>
                                    <td>{$vo.dealer_phone}</td>
                                    <td>{$vo.tomb_num}</td>
                                    <td>{$vo.tomb_address}</td>
                                    <td>{$vo.handle_name}</td>
                                    <td><if condition="$vo.service_status eq 1">未确认<elseif condition="$vo.service_status eq 2">已确认<else/>已完成</if>
                                </tr>
                            </foreach>
                            </tbody>
                        </table>
                        <div class="pagination">{$page}</div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-lg-6">
                    <div class="div_title"><span>迁墓提醒</span>
                        <span style=" color: red;  margin-left: -33px; font-size:16px">（{$move_count}）</span>
                        <a href="{:url('Remind/check')}?type=qm" style="color:#ffffff;"><span style="float:right; margin-right:20px; font-size:12px">查看更多</span></a></div>
                    <div class="control-group1-p div_content" style="overflow:hidden; overflow-x:auto;padding-top:0">
                        <form action="{:url('Rock/order')}" method="post">
                            <table class="table table-hover table-bordered">
                                <thead>
                                <tr>
                                    <th>迁墓时间</th>
                                    <th>客户名称</th>
                                    <th>联系方式</th>
                                    <th>墓位编号</th>
                                    <th>具体位置</th>
                                    <th>接待人</th>
                                    <th>状态</th>
                                </tr>
                                </thead>
                                <tbody>
                                <foreach name="move_results" item="vo">
                                    <tr>
                                        <td>{$vo.move_time|date='Y-m-d H:i'}</td>
                                        <td>{$vo.buyer_name}</td>
                                        <td>{$vo.buyer_phone}</td>
                                        <td>{$vo.tomb_num}</td>
                                        <td>{$vo.tomb_address}</td>
                                        <td>{$vo.handle_name}</td>
                                        <td><if condition="$vo.service_status eq 1">未确认<elseif condition="$vo.service_status eq 2">已确认<else/>已完成</if>
                                    </tr>
                                </foreach>
                                </tbody>
                            </table>
                            <div class="pagination">{$page}</div>
                        </form>
                    </div>
                </div>
                <div class="col-lg-6">
<!--                    <div class="div_title"><span>维护费提醒</span><a href="{:url('Aftersale/protect')}?type=wh" style="color:#ffffff;"><span style="float:right; margin-right:20px; font-size:12px">查看更多</span></a></div>-->
                    <div class="div_title"><span>维护费提醒</span>
                        <span style=" color: red;  margin-left: -33px; font-size:16px">（{$weihu_count}）</span>
                        <a href="{:url('Remind/check')}?type=wh" style="color:#ffffff;"><span style="float:right; margin-right:20px; font-size:12px">查看更多</span></a></div>
                    <div class="control-group1-p div_content" style="overflow:hidden; overflow-x:auto; padding-top:0">
                        <form action="{:url('Rock/order')}" method="post">
                            <table class="table table-hover table-bordered">
                                <thead>
                                <tr>
                                    <th>到期时间</th>
                                    <th>当前状态</th>
                                    <th>客户名称</th>
                                    <th>联系方式</th>
                                    <th>墓位编号</th>
                                    <th>具体位置</th>
                                </tr>
                                </thead>
                                <tbody>
                                <foreach name="weihu_result" item="vo">
                                    <tr>
                                        <td>{:unixtime_to_date($vo.end_time,'Y-m-d')}</td>
                                        <td>即将到期</td>
                                        <td>{$vo.buyer_name}</td>
                                        <td>{$vo.buyer_phone}</td>
                                        <td>{$vo.tomb_num}</td>
                                        <td>{$vo.tomb_region}{$vo.tomb_address}</td>
                                    </tr>
                                </foreach>
                                </tbody>
                            </table>
                            <div class="pagination">{$page}</div>
                        </form>
                    </div>
                </div>
            </div>
        </fieldset>
        </form>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
    <script type="application/javascript">
        $(document).ready(function(){
        })
    </script>
</body>
</html>